//
//  InstrumentMIssingBar.m
//  jiaolian
//
//  Created by hlj on 15/2/2.
//  Copyright (c) 2015年 脑洞 ios. All rights reserved.
//

#import "InstrumentMIssingBar.h"
#import "UIColor+HLJColor.h"
@implementation InstrumentMIssingBar

+(BOOL)fixMissingBarWithVIewController:(UIViewController * )controller
{
        //隐藏后 bar 后遮挡
        CGFloat barHeight = CGRectGetHeight(controller.navigationController.navigationBar.frame);
    
        CGFloat statusBarHeigjt  = CGRectGetHeight([UIApplication sharedApplication].statusBarFrame);
    
        CGFloat barWidth  = CGRectGetWidth([UIApplication sharedApplication].statusBarFrame);

        UIView *   topShodowView =[[UIView alloc]initWithFrame:CGRectMake(0, -(statusBarHeigjt+barHeight), barWidth, statusBarHeigjt+barHeight)];
    
        UIView  * buttomClipLine =[[UIView alloc]initWithFrame:CGRectMake(0, (statusBarHeigjt+barHeight)-0.5, barWidth, 0.5)];
    
//        [buttomClipLine setBackgroundColor:[UIColor ultramarineColor]];
    
        [buttomClipLine setBackgroundColor:WhiteColor];
        [topShodowView addSubview:buttomClipLine];
        [controller.view addSubview:topShodowView];
    
    topShodowView.backgroundColor =  [UIColor navColor];//[UIColor rockBlackCOlor]; //kColorNavBg_white;

    return YES;
}


@end
